package cn.com.edaily.auth.enumeration;

import cn.com.edaily.common.base.BaseEnum;

/**
 * <pre>类名: LoginResultEnum</pre>
 * <pre>描述: 登录结果枚举</pre>
 * <pre>版权: web_chen@163.com</pre>
 * <pre>日期: 2020/2/1 21:00</pre>
 * <pre>作者: chenwb</pre>
 */
public enum LoginResultEnum implements BaseEnum {
	SUCCESS("10000", "登录成功"),
	NOTEXSIST("10001", "用户不存在"),
	AUTHWRONG("10002", "用户名或密码错误");

	private String code;

	private String text;

	LoginResultEnum(String code, String text) {
		this.code = code;
		this.text = text;
	}

	@Override
	public String getCode() {
		return code;
	}

	@Override
	public String getText() {
		return text;
	}
}
